fetcher: Use 0666 (-umask) for temporary files
authorColin Walters <walters@verbum.org>
Wed, 26 Aug 2015 19:41:39 +0000 (15:41 -0400)
committerColin Walters <walters@verbum.org>
Thu, 27 Aug 2015 15:36:48 +0000 (11:36 -0400)
commit0110183675c4427eeee4ce5fb92f5db2bf6b333f
tree3f5726a24b121d406782fa7304f5c805521937fb
parent5a4b87b168e88747800cd9471573433c7170bda1
fetcher: Use 0666 (-umask) for temporary files

There's no reason to keep them hidden.  I have a hard policy that
OSTree should *not* be used to carry secrets.  Things like host ssh
private keys should be set up out of band by an OS-external
configuration mechanism such as kickstart, cloud-init, etc.

We also assume that hiding binaries is not very useful as most
attackers would be able to find them on the Internet or (for
subscribed content) acting as a customer.

This fixes a bug with mirroring because we changed to take the
unmodified upstream objects rather than uncompress <-> recompress.

https://bugzilla.gnome.org/show_bug.cgi?id=748959
src/libostree/ostree-fetcher.c
tests/test-pull-mirror-summary.sh